﻿using System.Collections.Generic;
using eCommerce.db.DALRespository;
using eCommerce.db.DataRespository;

namespace eCommerce.db.BORespository
{
    public class ExpenseBo
    {
        public static List<ExpenseEntity> Search(int storeId, string startDate, string endDate, int pageIndex, int pageSize, ref int totalRecords)
        {
            return ExpenseDal.Search(storeId, startDate, endDate, pageIndex, pageSize, ref totalRecords);
        }

        public static ExpenseEntity GetById(int id)
        {
            return ExpenseDal.GetById(id);
        }

        public static void Create(ExpenseEntity o)
        {
            ExpenseDal.Create(o);
        }

        public static void Update(ExpenseEntity o)
        {
            ExpenseDal.Update(o);
        }

        public static void Delete(int id)
        {
            ExpenseDal.Delete(id);
        }
    }
}
